#ifndef _INITHARD_H_
#define _INITHARD_H_

#ifdef __cplusplus
extern "C" {
#endif

#define MCLK_OK     0
#define MCLK_RC     1
#define MCLK_ERROR  2

#define SRAM0_BASE_ADDR (void *)0x80000000
#define SRAM1_BASE_ADDR (void *)0x81000000
#define SRAM_BANK_SIZE  0xFFFF


void    PortInit(void);
void    PortDown(void);
unsigned char   InitCLK(void);
void    InitEMC(void);
unsigned int    MemTest(void);
unsigned char InitRTC(void);
unsigned char SetRTCClock(void);
void RegisterIrq (int irq, unsigned int isr,int pri);
unsigned char SetPowerDown(void);
void InitVIC(void);
unsigned char SetRCClock(void);
__irq __arm void RTCInterrupt(void);

#ifdef __cplusplus
}
#endif

#endif